import { defineMock } from 'vite-plugin-mock-dev-server'

export default defineMock([
  {
    url: '/api/home',
    body: {      
      code: 0,
      msg: 'success',
      data: [
                {
                    id: 1,
                    image: 'https://images.unsplash.com/photo-1551963831-b3b1ca40c98e',
                    title: 'ukactive Flame Conference 2015',
                    description: 'We thoroughly enjoyed attending last week\'s ukactive\'s Flame Conference: the UK\'s leading event for health, fitness and physical activity...',
                    author: 'Judy Brittie',
                    date: '25th June 2015',
                    category: '新闻',
                    tags: ['tech', 'business'],
                    views: 124,
                    likes: 5
                },
                {
                    id: 2,
                    image: 'https://images.unsplash.com/photo-1551782450-a2132b4ba21d',
                    title: 'Food marketing tips',
                    description: 'Short description for testing.',
                    author: 'Jenny Tschiesche',
                    date: '26th June 2015',
                    category: '观点',
                    tags: ['business'],
                    views: 89,
                    likes: 3
                },
                {
                    id: 3,
                    image: 'https://images.unsplash.com/photo-1522770179533-24471fcdba45',
                    title: 'Master chef chooses Beyond',
                    description: '无描述',
                    author: 'Paul Bissett',
                    date: '18th June 2015',
                    category: '积极',
                    tags: ['food', 'entertainment'],
                    views: 156,
                    likes: 7
                },
                {
                    id: 4,
                    image: 'https://images.unsplash.com/photo-1444418776041-9c7e33cc5a9c',
                    title: 'Award-winning vandalism',
                    description: 'This is a very long description that should demonstrate how the masonry layout works with varying content lengths. The quick brown fox jumps over the lazy dog multiple times to create a longer text block that will make this card significantly taller than others in the grid.',
                    author: 'Paul Bissett',
                    date: '18th June 2015',
                    category: '新闻',
                    tags: ['design', 'entertainment'],
                    views: 201,
                    likes: 12
                },
                {
                    id: 5,
                    image: 'https://images.unsplash.com/photo-1533827432537-70133748f5c8',
                    title: 'Healthy eating habits',
                    description: 'Discover the secrets to maintaining a healthy diet in your busy lifestyle. Learn how to make better food choices and develop sustainable eating habits.',
                    author: 'Sarah Johnson',
                    date: '15th July 2015',
                    category: '健康',
                    tags: ['health', 'food'],
                    views: 178,
                    likes: 9
                },
                {
                    id: 6,
                    image: 'https://images.unsplash.com/photo-1558642452-9d2a7deb7f62',
                    title: 'New fitness trends for 2015',
                    description: 'Explore the latest fitness trends.',
                    author: 'Mike Peterson',
                    date: '3rd July 2015',
                    category: '健康',
                    tags: ['health', 'sports'],
                    views: 145,
                    likes: 8
                }
        ],
        enabled: true,
    }
  },
  {
    url: '/api/selecttag',
    body: {
      code: 0,
      msg: 'success',
      data: [
                { id: 'tech', label: '技术', icon: 'CoffeeCup' },
                { id: 'design', label: '设计', icon: 'Brush' },
                { id: 'business', label: '商业', icon: 'TrendCharts' },
                { id: 'health', label: '健康', icon: 'FirstAidKit' },
                { id: 'education', label: '教育', icon: 'Notebook' },
                { id: 'entertainment', label: '娱乐', icon: 'Film' },
                { id: 'sports', label: '体育', icon: 'Basketball' },
                { id: 'travel', label: '旅行', icon: 'MapLocation' }
            ],
      enabled: true,
    }
  }
])